using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public class AddHourlyEmployee:AddEmployeeTransaction
    {
        private double itsHourlyRate;
        
        public AddHourlyEmployee(int empid, string name, string address, double hourlyRate)
            :base(empid,name,address)
        {
            itsHourlyRate = hourlyRate;
        }
        public override PaymentClassification GetClassification()
        {
            return new HourlyClassification(itsHourlyRate);
        }

        public override PaymentSchedule GetSchedule()
        {
            return new WeeklySchedule();
        }
    }
}
